//
//  DownloadTool.h
//  Douban Two
//
//  Created by dlios on 15/3/2.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@protocol downloadDelegate <NSObject>

- (void)didDownloadFinished:(id)result;

@optional
- (void)downloadError:(NSError *)error;

@end


@interface DownloadTool : NSObject

- (instancetype)initWithUrlStr:(NSString *)urlStr;

@property (nonatomic, assign) id<downloadDelegate>myDelegate;

- (void)downloadData:(NSString *)urlStr;

@end
